<!-- 云诺 https://app.witframe.com/market/list/index?uid=24 -->
<template>
	<view class="content">
		<u-navbar title="发展历程" :autoBack="true" ></u-navbar>
				
		<view id="content-body" class="content-body clearfix">
			<yn-timeaxis :lists="info"></yn-timeaxis>
		</view>
		
		<yn-tabbar currentTab='home'></yn-tabbar>
	</view>
</template>

<script>
	import API from '@/common/api.js';
	var app = getApp();
	export default {
		data() {
			return {
				baseinfo: [],
				minappinfo: [],
				info: [],
			}
		},
		onLoad(options) {
			this.baseinfo = uni.getStorageSync('baseinfo');
			this.minappinfo = uni.getStorageSync('minappinfo');
			
			this.getCourse();
		},
		onShareAppMessage: function() {
			let title = this.minappinfo.tShareName ? this.minappinfo.tShareName : '发展历程';
			let img = this.minappinfo.tLogo ? this.minappinfo.tLogo : '../../images/default.png'
			
			return {
				title: title,
				imageUrl: img,
				path: '/pages/course/course'
			}
		},
		onShareTimeline: function(res) {
			let title = this.minappinfo.tShareName ? this.minappinfo.tShareName : '发展历程';
			let img = this.minappinfo.tLogo ? this.minappinfo.tLogo : '../../images/default.png'
			if (this.minappinfo.tShareDesc) {
				title = this.minappinfo.tShareName + " - " + this.minappinfo.tShareDesc
			}
			return {
				title: title,
				imageUrl: img,
				path: '/pages/course/course'
			}
		},
		methods: {
			getCourse: function() {
				API.getCourse().then(res => {
					    //console.log(res.data);
						this.info = res.data.data;
					})
					.catch(err => {
						console.log(err)
					})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		margin-top: 100rpx;
	}
	.content-body {
		clear: both;
		color: #37393e;
		margin: 0;
		padding: 80rpx 30rpx;
		font-size: 36rpx;
		line-height: 70rpx;
		text-align: justify;
		word-wrap: break-word;
		word-break: normal;
		font-family:"Arial","Microsoft YaHei","黑体","宋体",SimSun,FangSong,SimHei,KaiTi,sans-serif;
	
		video {
			width: 100% !important;
		}
	
		image {
			width: 100% !important;
		}
	
	}
</style>
